package br.com.tecnoria.vo
{
	[Bindable]
	[RemoteClass(alias="UserVO")]
	public class UserVO
	{
		public var idUser:int;
		public var name:String;
		public var username:String;
		public var password:String;
		public var type:String;
		
		public static const ADMIN:String = "admin";
		public static const CUSTOMER:String = "customer";
		
		public function UserVO(user:Object = null)
		{
			if (user != null)
			{
				this.idUser = user.idUser;
				this.name = user.name;
				this.username = user.username;
				this.password = user.password;
				this.type = user.type;
			}
		}
	}
}